home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / M / MacPerl 4.13 source.sit / Perl Source ƒ / MacPerl / MPFile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-27  |  1.6 KB  |  71 lines  |  [TEXT/MPS ]

  1. /*********************************************************************
  2. Project    :    MacPerl            -    Real Perl Application
  3. File        :    MPFile.h            -
  4. Author    :    Matthias Neeracher
  5.  
  6. A lot of this code is borrowed from 7Edit written by
  7. Apple Developer Support UK
  8.  
  9. Language    :    MPW C
  10.  
  11. $Log: MPFile.h,v $
  12. Revision 1.1  1994/02/27  23:03:17  neeri
  13. Initial revision
  14.  
  15. Revision 0.3  1993/08/29  00:00:00  neeri
  16. GetDocType
  17.  
  18. Revision 0.2  1993/08/13  00:00:00  neeri
  19. ApplySettings
  20.  
  21. Revision 0.1  1993/05/29  00:00:00  neeri
  22. Compiles correctly
  23.  
  24. *********************************************************************/
  25.  
  26. #ifndef __MPFILE__
  27. #define __MPFILE__
  28.  
  29. #include <Memory.h>
  30. #include <QuickDraw.h>
  31. #include <Traps.h>
  32. #include <Files.h>
  33. #include <Packages.h>
  34. #include <Editions.h>
  35. #include <AppleEvents.h>
  36. #include <Printing.h>
  37.  
  38. #include "MPGlobals.h"
  39. #include "MPUtils.h"
  40. #include "MPWindow.h"
  41. #include "MPEditions.h"
  42.  
  43. pascal void DoQuit(DescType saveOpt);
  44.  
  45. pascal OSErr DoClose(WindowPtr aWindow, Boolean canInteract, DescType dialogAnswer);
  46.  
  47. pascal OSErr GetFileNameToSaveAs(DPtr theDocument);
  48.  
  49. pascal OSErr GetFileContents(FSSpec theFSSpec, DPtr theDocument);
  50.  
  51. pascal void FileError(Str255 s, Str255 f);
  52.  
  53. pascal OSErr SaveAskingName(DPtr theDocument, Boolean canInteract);
  54.  
  55. pascal OSErr SaveUsingTemp(DPtr theDocument);
  56.  
  57. pascal OSErr DoCreate(FSSpec theSpec);
  58.  
  59. pascal OSErr OpenOld(FSSpec aFSSpec, DocType type);
  60.  
  61. pascal OSErr GetFile(FSSpec *theFSSpec);
  62.  
  63. pascal void ApplySettings(DPtr doc, HPtr settings);
  64.  
  65. pascal OSErr SaveConsole(DPtr doc);
  66.  
  67. pascal void RestoreConsole(DPtr doc);
  68.  
  69. pascal DocType GetDocType(FSSpec * spec);
  70.  
  71. #endif